{% extends "base.html" %}

{% block subtitle %}
  Reader View
{% endblock subtitle %}

{% block header_js %}
  {{ super() }}
  {% if exploration_version %}
    <script type="text/javascript">
      GLOBALS.explorationVersion = JSON.parse('{{exploration_version|js_string}}');
    </script>
  {% endif %}
{% endblock header_js %}

{% block content %}
  {% if not is_public %}
    <center>
      <div class="oppia-warning">
        <strong>Note:</strong> This is a preview of an unpublished exploration.
      </div>
      <br>
    </center>
  {% endif %}
  {{ content }}
  <br><br><br>
{% endblock %}

{% block footer_js %}
  {{ super() }}
  <script>
    {{ include_js_file('reader/ReaderExploration.js') }}
    {{ include_js_file('components/noninteractiveWidgetDirectives.js') }}
    {{ include_js_file('components/interactiveWidgetDirectives.js') }}
  </script>
{% endblock footer_js %}
